package com.作业.Day10;



public class Homework2 {
    public static void main(String[] args) {
        System.out.println(unity.u1.getDesc());
        System.out.println(unity.u2.getDesc());
        System.out.println(unity.u3.getDesc());
    }
}
enum unity{
    u1("第一单元打基础"),
    u2("第二单元可以胜任java程序开发"),
    u3("第三单元可以胜任企业级java开发");
    private String desc;

    public String getDesc() {
        return desc;
    }

    unity(String desc) {
        this.desc = desc;
    }
}